def solve():
    s = input()
    t = s[::-1]
    print(s == t)


if __name__ == "__main__":
    solve()
